package team.zero.lemon.module.workflow.entity;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

import team.zero.lemon.common.persistence.DataEntity;
import team.zero.lemon.module.workflow.entity.Parameter.Participants;

public class Activity extends DataEntity {

    private Integer templateId;
    private String activityName;
    private Integer activityType;
    private Integer branchActivityId;
    private String coordinate;
    private String expression;
    private Integer finishNumber;
    private String imgurl;
    private Integer status;
    private UUID guid;
    private UUID parentGuid;
    private UUID templateGuid;
    private List<Integer> ruleIds;
    private List<Participants> participantses;
    public List<ActivityForm> getActivityForms() {
        return activityForms;
    }

    public void setActivityForms(List<ActivityForm> activityForms) {
        this.activityForms = activityForms;

    }

    private List<ActivityForm> activityForms;


    public UUID getTemplateGuid() {
        return templateGuid;
    }

    public void setTemplateGuid(UUID templateGuid) {
        this.templateGuid = templateGuid;
    }

    private List<ActivityParticipant> activityParticipants;

    public Integer getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Integer templateId) {
        this.templateId = templateId;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public Integer getActivityType() {
        return activityType;
    }

    public void setActivityType(Integer activityType) {
        this.activityType = activityType;
    }

    public Integer getBranchActivityId() {
        return branchActivityId;
    }

    public void setBranchActivityId(Integer branchActivityId) {
        this.branchActivityId = branchActivityId;
    }

    public String getCoordinate() {
        return coordinate;
    }

    public void setCoordinate(String coordinate) {
        this.coordinate = coordinate;
    }

    public String getExpression() {
        return expression;
    }

    public void setExpression(String expression) {
        this.expression = expression;
    }

    public Integer getFinishNumber() {
        return finishNumber;
    }

    public void setFinishNumber(Integer finishNumber) {
        this.finishNumber = finishNumber;
    }

    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public UUID getGuid() {
        return guid;
    }

    public void setGuid(UUID guid) {
        this.guid = guid;
    }

    public UUID getParentGuid() {
        return parentGuid;
    }

    public void setParentGuid(UUID parentGuid) {
        this.parentGuid = parentGuid;
    }

    public List<ActivityParticipant> getActivityParticipants() {
        return activityParticipants;
    }

    public void setActivityParticipants(List<ActivityParticipant> activityParticipants) {
        this.activityParticipants = activityParticipants;
    }

    public List<Participants> getParticipantses() {
        if(participantses==null){
            participantses=new ArrayList<Participants>();
        }
        return participantses;
    }

    public void setParticipantses(List<Participants> participantses) {
        this.participantses = participantses;
    }

    public List<Integer> getRuleIds() {
        if(ruleIds==null){
            ruleIds=new ArrayList<Integer>();
        }
        return ruleIds;
    }

    public void setRuleIds(List<Integer> ruleIds) {
        this.ruleIds = ruleIds;
    }
}